{% extends 'TopxiaAdminBundle::layout.html.twig' %}

{% set script_controller = 'navigation/page' %}

{% set menu = 'admin_'~type~'_navigation' %}
{% set types = {top:'顶部', foot:'底部'} %}

{% block page_buttons %} 
    <button class="btn btn-success btn-sm pull-right" id="add-navigation-btn" data-toggle="modal" data-target="#modal" data-url="{{ path('admin_navigation_create', {type: type}) }}">新增{{ types[type] }}导航</button>
{% endblock %}

{% block main %}

{% if type == 'foot' %}
<div class="alert alert-info"><i class="glyphicon glyphicon-info-sign"></i> 清秋主题、默认主题A、默认主题B、雅致简洁之外的主题，请前往 <a class="text-info" style="font-weight:bold;" href="{{ path('admin_block', {category:'theme'}) }}">［运营］－［编辑区管理］</a> 中进行编辑。</div>
{% endif %}

<table id="navigation-table" class="table table-striped table-hover navigation-table">
	<thead>
	  <tr>
	    <th width="50%">名称</th>
	    <th width="10%">新开窗口</th>
	    <th width="10%">状态</th>  
	    <th width="30%">操作</th>
	  </tr>
	</thead>
    
 	{% include 'TopxiaAdminBundle:Navigation:tbody.html.twig' %}
</table>
    


{% endblock %}
